#
# Copyright (C) 2023
#
# Brick Yang <printfxxx@163.com>
#
# This program is free software. You can redistribute it and/or
# modify it as you like.
#

sb_dpaa2_files = files('Kbuild', 'dpaa2.c', 'dpbp.c', 'dpbp.h', 'dpcon.c', 'dpcon.h', 'dpio.c', 'dpio.h', 'dpmac.c',
		       'dpmac.h', 'dpmng.c', 'dpmng.h', 'dpni.c', 'dpni.h', 'dprc.c', 'dprc.h', 'mtrace.c', 'qbman.c',
		       'qbman.h')

custom_target('sb_dpaa2_kmod', output: 'sb_dpaa2.ko', command: kbuild_cmd, env: sb_core_kenvs,
	      input: sb_dpaa2_files, depends: sb_core_kmod, build_always_stale: true, build_by_default: true)

meson.add_install_script(kinst_cmd.format(meson.current_build_dir()).split())
